package org.example.service.Impl;

import org.apache.dubbo.config.annotation.Service;
import org.example.service.api.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(version = "1.1",timeout = 3000)
@org.springframework.stereotype.Service
public class HelloServiceImpl implements HelloService {
    private Logger log = LoggerFactory.getLogger(this.getClass());
    @Override
    public void sayHello(String name) {
//        try {
//            Thread.sleep(5000);
//        } catch (InterruptedException e) {
//            throw new RuntimeException(e);
//        }
        log.info("执行sayHello方法。。。");
        System.out.println("hello i am provider! form " + name);
    }
}
